﻿using System.Linq;
using System.Configuration;

namespace ExcellentCRM.Site.Utilities
{
    public class PresetValues
    {
        private static string _siteName;

        public static string SiteName
        {
            get { return _siteName ?? (_siteName = ConfigurationManager.AppSettings["SiteName"]); }
        }

        public static int PageSize
        {
            get
            {
                return ConfigurationManager.AppSettings.AllKeys.Contains("PageSize")
                           ? int.Parse(ConfigurationManager.AppSettings["PageSize"])
                           : 15;
            }
        }

        public struct SessionKeys
        {
            public const string CurrentAcctId = "SessionKeys_CurrentAcctId";
        }

        public struct ViewDataKeys
        {
            public const string ActiveAct = "ActiveAct";
        }
    }
}